package com.mes.cloud.api.dto.request.product;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * 对标竞品关联
 * 
 * @author xy
 * @version 2019-08-21 16:12:50
 * @email yuan.xue3@pactera.com
 */
@Data
public class ProductCompetitiveBrandPageRequest implements Serializable{
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "currentPage不能为空")
    private int currentPage;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "pageSize不能为空")
    private int pageSize;

    @ApiModelProperty(value = "排序", required = false)
    private String orderBy;

    @ApiModelProperty(value = "主键", required = false)
    private String id;

    @ApiModelProperty(value = "产品ID", required = true)
    @NotNull(message = "productId不能为空")
    @NotEmpty(message = "productId不能为空")
    private String productId;

    @ApiModelProperty(value = "关联产品ID", required = false)
    private String relateProductId;

    @ApiModelProperty(value = "区域", required = false)
    private String areaName;

    @ApiModelProperty(value = "区域id", required = false)
    private String areaId;

    @ApiModelProperty(value = "状态(0：禁用，1：启用)", required = false)
    private String enableFlag;

    @ApiModelProperty(value = "创建人", required = false)
    private String createBy;

    @ApiModelProperty(value = "创建时间", required = false)
    private Date createTime;

    @ApiModelProperty(value = "修改人", required = false)
    private String updateBy;

    @ApiModelProperty(value = "修改时间", required = false)
    private Date updateTime;

    @ApiModelProperty(value = "删除标记，1：删除，0：未删除", required = false)
    private String delFlag;

    @ApiModelProperty(value = "更新日期", required = false)
    private String updateDateStr;

    @ApiModelProperty(value = "版本", required = false)
    private Integer version;

    @ApiModelProperty(value = "产品名称/区域名称", required = false)
    private String queryString;
}
